<?php

// $Id$

require_once(TANGRA_MAIN_DIR.'form/fields/checkbox/form_field_checkbox_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/fields/text/form_field_text_view.class.php');
require_once(TANGRA_MAIN_DIR.'form/guardable_form_view.class.php');


class Settings_Dir_Index_Form_View extends Guardable_Form_View {
	function __construct(Form &$form) {
		parent::__construct($form);

		$f_switch = $form->get_field('switch');
		$f_switch_view = new Form_Field_Checkbox_View($form->get_name().'_'.$f_switch->get_name(), $f_switch);
		$this->add_field_view('switch', $f_switch_view);

		$f_files = $form->get_field('files');
		$f_files_view = new Form_Field_Text_View($form->get_name().'_'.$f_files->get_name(), $f_files);
		$this->add_field_view('files', $f_files_view);
	}
}
